{% extends "./base.html" %}
{% block title %}Add New Item{% endblock %}
{% block content %}
<form action="" method="post">
	<div class="input">
		<label for="title">Title:</label>
		<input type="text" name="title" value="{{ item.title }}" />
	</div>
	<div class="input">
		<label for="desc">Description:</label>
		<textarea name="desc">{{ item.desc }}</textarea>
	<div class="input">
		<label for="price">Price:</label>
		<input type="number" step="0.01" name="price" value="{{ item.price }}" />
	</div>
	<div class="input">
		<label for="viewers">Viewers (leave blank for public):</label>
		<textarea name="viewers">{% for viewer in item.viewers -%}
			{{ viewer.email() }}
		{%- endfor %}</textarea>
	</div>
	<input type="submit" class="btn btn-primary" />
</form>
{% endblock %}
